
#docker rmi -f bitnami/redis:6.2.4
docker pull bitnami/redis:6.2.4
rm -rf /cardone/docker/images/bitnami/redis_6.2.4.tar
mkdir -p /cardone/docker/images/bitnami
docker save bitnami/redis:6.2.4 > /cardone/docker/images/bitnami/redis_6.2.4.tar
#docker load < /cardone/docker/images/bitnami/redis_6.2.4.tar



# docker node update --label-rm cardone-redis_redis-1 cardone-01-01
docker node update --label-add cardone-redis_redis-1=true cardone-01-01

docker stack rm cardone-redis

docker stack deploy -c /cardone/middlewares/redis/prod.yml cardone-redis

for i in {1..10}  
do  
sleep $i

docker stack ps cardone-redis

docker service ls
done

docker service logs cardone-redis_redis-1 -f --tail 300
